package com.ruoyi.common.constant;


import cn.hutool.core.date.DateUtil;

import java.util.Date;

/**
 * 注释
 *
 * @author lys
 * @date 2022/11/23
 */
public class ExcelStants {

    /**
     * 文件后缀
     */
    public static final String FILE_SUFFIX = ".xlsx";

    public static final String DATE_FORMAT_YMDHMS = "yyyy-MM-dd HH:mm:ss";

    public static final String DATE_FORMAT_YMD = "yyyy-MM-dd";

    public static final String DATE_FORMAT_SLASH_YMD = "yyyy/MM/dd";

    /**
     * 默认行高
     */
    public static final int DEFAULT_ROW_HEIGHT = 30;

    /**
     * 默认列宽
     */
    public static final int DEFAULT_COLUMN_WIDTH = 20;

    /**
     * 主动停止状态
     */
    public static final int ACTIVE_STOP_STATUS = -3;

    /**
     * 超时 分钟数
     */
    public static final int ACTIVE_TIMEOUT_STATUS = 60;


    /**
     * 导入条数
     */
    public static final int IMPORT_ARTICLE = 1000;

    /**
     * 页码
     */
    public static final String PAGE_NUMBER = "pageNumber";

    /**
     * 页面大小
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 导入导出记录表
     */
    public static final String IMPORT_EXPORT_TASK_TABLE = "import_export_task";

    /**
     * 导入导出模板表
     */
    public static final String IMPORT_EXPORT_TEMPLATE_TABLE = "import_export_template";

    /**
     * jdbc配置库
     */
    public static final String JDBC_CONFIG = "jdbc_config";

    /**
     * excel文件路径
     */
    public static final String EXCEL_PATH = "D:/excelFile/" + DateUtil.format(new Date(),DATE_FORMAT_SLASH_YMD + "/");

    /**
     * 图片压缩量
     */
    public static final int IMG_YS = 50;

    public static void main(String[] args) {
        String s = DateUtil.format(new Date(),DATE_FORMAT_SLASH_YMD);
        System.out.println(s);
    }
}
